libvlc_sources = [
    'core.c',
    'dialog.c',
    'renderer_discoverer.c',
    'error.c',
    'log.c',
    'video.c',
    'audio.c',
    'event.c',
    'media.c',
    'media_track.c',
    'media_player.c',
    'media_list.c',
    'media_list_path.h',
    'media_list_player.c',
    'media_discoverer.c',
    'picture.c'
]

libvlc_cargs = []
if host_system == 'windows'
    libvlc_cargs += ['-DLIBVLC_DLL_EXPORT']
endif

libvlc = library('vlc',
    libvlc_sources, rev_target,
    include_directories: [vlc_include_dirs],
    c_args: libvlc_cargs,
    link_with: [vlc_libcompat],
    dependencies: [libvlccore_dep, m_lib, threads_dep],
    install: true
)
